0fbdb4eff05c74dfee519f6852bc77e0531e231a,Dart/src/com/jetbrains/lang/dart/ide/runner/server/DartCommandLineRunningState.java,DartCommandLineRunningState,createActions,#ConsoleView#ProcessHandler#Executor#,74

Before Change


  @Override
  protected AnAction[] createActions(final ConsoleView console, final ProcessHandler processHandler, final Executor executor) {
    // These action is effectively added only to the Run tool window. For Debug see DartCommandLineDebugProcess.registerAdditionalActions()
    final AnAction[] actions = super.createActions(console, processHandler, executor);
    final AnAction[] newActions = new AnAction[actions.length + 2];
    System.arraycopy(actions, 0, newActions, 0, actions.length);

After Change


  @Override
  protected AnAction[] createActions(final ConsoleView console, final ProcessHandler processHandler, final Executor executor) {
    // These actions are effectively added only to the Run tool window. For Debug see DartCommandLineDebugProcess.registerAdditionalActions()
    final List<AnAction> actions = new ArrayList(Arrays.asList(super.createActions(console, processHandler, executor)));
    addObservatoryActions(actions, processHandler);
    return actions.toArray(new AnAction[actions.size()]);
  }

  protected void addObservatoryActions(List<AnAction> actions, final ProcessHandler processHandler) {